package ${servicePackageName}.service;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdhs.paas.sdk.base.common.BaseDao;
import com.sdhs.paas.sdk.base.common.BasePage;
import com.sdhs.paas.sdk.base.page.Page;
import com.sdhs.paas.sdk.core.PaasBaseException;
import com.sdhs.paas.sdk.core.mybatis.EnablePaasMybatis;
import ${servicePackageName}.bean.${className}Bean;
import ${servicePackageName}.repository.${className}Mapper;

/**
* 描述：${className}Service 服务接口
* @author ${author}
* @date ${date}
*/

@EnablePaasMybatis
@MapperScan("${servicePackageName}.repository")
@Service
public interface ${className}Service extends BaseDao<${className}Bean, ${className}Mapper, Integer>{

    /**
      * 根据ID查找${className}对象
      * @author ${author}
      * @date ${date}
      */
    ${className} findEntityById(Integer id)throws Exception;
    /**
      * 新增一个${className}对象
      * @author ${author}
      * @date ${date}
      */
    Integer create${className}(${className} ${className?uncap_first}) throws Exception;
    /**
      * 根据ID删除一个${className}对象
      * @author ${author}
      * @date ${date}
      */
     Integer delete${className}(Integer id) throws Exception;
     /**
       * 根据ID更新
       * @author ${author}
       * @date ${date}
       */
    Integer update${className}(${className} ${className?uncap_first}) throws Exception;

}